package com.Spring;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class Lifecycle {
    public String content;

    public void setContent(String content) {
        this.content = content;
    }

    @PostConstruct
    private void init() {
        System.out.println("init创建了");
    }

   @PreDestroy
    private void destroy() {
        System.out.println("destroy销毁了");
    }

    private void print() {
        System.out.println("print打印了");
    }

}

